]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Stop indicating do-not-disturb status
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 10 Apr 2025 18:17:16 +0000 (20:17 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 27 Jun 2025 11:36:17 +0000 (11:36 +0000)
The control for enabling/disabling do-not-disturb will be moved into
quick settings. It makes sense to then also move the indicator, so stop
showing the do-not-disturb status in the top bar's messages indicator.

Instead, just hide the indicator altogether when do-not-disturb
is active.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3691>

js/ui/dateMenu.js

index 7e7477a34468c8ec632894378f09ec90a14b85a0..7bb8bfff93da35cac680429c171e2aca653a998f 100644 (file)
@@ -744,6 +744,7 @@ class MessagesIndicator extends St.Icon {
     _init() {
         super._init({
             style_class: 'messages-indicator',
+            icon_name: 'message-indicator-symbolic',
             visible: false,
             y_expand: true,
             y_align: Clutter.ActorAlign.CENTER,
@@ -792,11 +793,8 @@ class MessagesIndicator extends St.Icon {
     }
 
     _sync() {
-        let doNotDisturb = !this._settings.get_boolean('show-banners');
-        this.icon_name = doNotDisturb
-            ? 'notifications-disabled-symbolic'
-            : 'message-indicator-symbolic';
-        this.visible = doNotDisturb || this._count > 0;
+        const doNotDisturb = !this._settings.get_boolean('show-banners');
+        this.visible = !doNotDisturb && this._count > 0;
     }
 });